$(function(){
 
 let data = {
  uid: localStorage.getItem("u_id"),
  token: localStorage.getItem("token"),
  language_type: localStorage.getItem("language_type"),
  l_type: 1
 }
 $.ajax({
  type: 'post',
  url: baseURL + '/index.php?m=index&c=wallet_log',
  data: data,
  success: function success(data) {
   data = JSON.parse(data);
   is_login(data);
   if (data.code == 1) {
    let money = Number(data.user.m_credit_1).toFixed(2)
    $("#jirou_totle").html(money);
    $(".shouyi_tuandui_top_two").html(`<a href="jirou_chong.html?money=${money}" class="col_fff shouyi_tuandui_top_two_div border_radius05 f34" data-ch="充值"
     data-en="Top up">充值</a>`)
    let jirouList = '';
    if(data.data.length == 0){
     jirouList = `<div class="if_null">
        <img class="if_null_img" src="./icons/nothing.png" alt="">
        <div class="if_null_text col_000 f30" data-ch="暂无内容" data-en="No data">暂无内容</div>
       </div>`
    } else {
     data.data.forEach(function(item){
      jirouList += `<div class="shouyi_list border_radius02 latout_mask">
       <div class="shouyi_list_top flex_be">
        <div class = "font_weight f32 ${item.l_status == 1 ? 'col_green' : 'color_red'}" >
         ${item.l_status == 1 ? '+' : ''}${item.l_num}
        </div>
        <div class="col_fff f28">${item.l_d_date}</div>
       </div>
       <div class="shouyi_list_bottom col_fff f30 flex_be">
        <div>${item.l_info}</div>
        <div>${item.l_d_time}</div>
       </div>
      </div>`
     })
    }
    $(".shouyi_tuandui_list_box").html(jirouList)
   } else {
    box_timer(data.msg);
   }
  }
 })
 language();
 documentName()
})